import config from '@/common/config';


import article from './modules/article';

export let baseRouterMap = [
  {
    path: '/',
    name: 'Index',
    component: resolve => require(['@/layout/layout/index.vue'], resolve),
    children:[
      {
        path:"/",
        name :"Index-Home",
        component:resolve => require(['@/pages/Article/index.vue'],resolve)
      }
    ]
  }
];
// 权限验证后的路由
export const asyncRouterMap = [
  {
    path: '*',
    redirect: '/article'
  }
];


// 路由的模式 只支持 'history' || 'hash'
let ROUTER_MODE = process.env.HISTORY || 'history';
export default {
  mode: ROUTER_MODE,
  base: '/oa',
  scrollBehavior: () => ({
    y: 0
  }),
  routes: baseRouterMap
};
